﻿using System.Collections.Generic;
using System.Data;

namespace PagedDataGridView
{
    public interface IPagedQueryExecutor
    {
        DataTable ReadNextPage();
        DataTable ReadPrevPage();
        DataTable ReadFirstPage();
        DataTable ReadLastPage();
        DataTable ChangePageSize(int newSize);
        void SetQuery(string sqlQuery);
        void SetPage(IPageData pageData);
        DataTable ReadCurrentPage();
        string BuildTotalString();
        DataTable ApplyFilters(List<Filter> filters);
    }
}
